import request from '@/utils/request'

// 查询中医用药记录列表
export function listMedicinal(query) {
  return request({
    url: '/health/medicinal/list',
    method: 'get',
    params: query
  })
}

// 查询中医用药记录详细
export function getMedicinal(id) {
  return request({
    url: '/health/medicinal/' + id,
    method: 'get'
  })
}

// 新增中医用药记录
export function addMedicinal(data) {
  return request({
    url: '/health/medicinal',
    method: 'post',
    data: data
  })
}

// 修改中医用药记录
export function updateMedicinal(data) {
  return request({
    url: '/health/medicinal',
    method: 'put',
    data: data
  })
}

// 删除中医用药记录
export function delMedicinal(id) {
  return request({
    url: '/health/medicinal/' + id,
    method: 'delete'
  })
}
